home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 July & August
/
PCWorld_2006-07-08_cd.bin
/
v cisle
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Expanding Text.sd
< prev
next >
Wrap
INI File
|
2004-06-28
|
2KB
|
115 lines
[SUBJECT]
Description=Draw attention to information on your site with expanding text
ImageIndex=-1
Folder=Text Effects
[BODY_TEXT]
;<script language="JavaScript">
;<!-- Begin
;// Original: Charles Foster (wcms_sf@msn.com)
;// Web Site: http://kylo.ml.org/flash
;
;// This script and many more are available free online at
;// The JavaScript Source!! http://javascript.internet.com
;
;
;var speed = `speed`;
;var cycledelay = `cycle_delay`;
;var maxsize = `maxsize`;
;
;var x = 0;
;var y = 0;
;var themessage, size;
;var esize = "</font>";
;
;function initArray() {
;this.length = initArray.arguments.length;
;for (var i = 0; i < this.length; i++) {
;this[i] = initArray.arguments[i];
; }
;}
;var themessage2 = new initArray(
;"`message1`",
;"`message2`",
;"`message3`"
;);
;if(navigator.appName == "Netscape")
;document.write('<layer id="wds"></layer><br>');
;if (navigator.appVersion.indexOf("MSIE") != -1)
;document.write('<span id="wds"></span><br>');
;function upwords(){
;themessage = themessage2[y];
;if (x < maxsize) {
;x++;
;setTimeout("upwords()",speed);
;}
;else setTimeout("downwords()",cycledelay);
;
;if(navigator.appName == "Netscape") {
;size = "<font point-size='"+x+"pt'>";
;document.wds.document.write(size+"<center>"+themessage+"</center>"+esize);
;document.wds.document.close();
;}
;if (navigator.appVersion.indexOf("MSIE") != -1){
;wds.innerHTML = "<center>"+themessage+"</center>";
;wds.style.fontSize=x+'px';
; }
;}
;function downwords(){
;if (x > 1) {
;x--;
;setTimeout("downwords()",speed);
;}
;else {
;setTimeout("upwords()",cycledelay);
;y++;
;if (y > themessage2.length - 1) y = 0;
;}
;if(navigator.appName == "Netscape") {
;size = "<font point-size='"+x+"pt'>";
;document.wds.document.write(size+"<center>"+themessage+"</center>"+esize);
;document.wds.document.close();
;}
;if (navigator.appVersion.indexOf("MSIE") != -1){
;wds.innerHTML = "<center>"+themessage+"</center>";
;wds.style.fontSize=x+'px';
; }
;}
;setTimeout("upwords()",speed);
;// End -->
;</script>
[`speed`]
Kind=N
Value=100
[`cycle_delay`]
Kind=N
Value=2000
[`maxsize`]
Kind=N
Value=28
[`message1`]
Kind=S
Value=JavaScript can do some amazing stuff!
[`message2`]
Kind=S
Value=Have you ever seen one of these before?
[`message3`]
Kind=S
Value=Neither have your visitors, so put it on your site!